//
//  Shap.swift
//  PrototypePattern
//
//  Created by 好米有易 on 2017/12/14.
//  Copyright © 2017年 好米有易. All rights reserved.
//

import UIKit

class Shap: Cloneable {
    
  
    private var id: String?
    
    var type: String = ""
    
   public func setId(id: String){
        
        self.id = id;
    }
    
   public func getId() -> String {
        return id!
    }
    
   public func getType() -> String {
        return type
    }
    
   
   public func clone() -> Cloneable {
        let shap = Shap()
        shap.id = self.id
        shap.type = self.type
        return shap
    }
    
    
    func draw() {
        
    }

    
    
}
